package com.flx.at.spring.code.apps.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Fenglixiong
 * @Date: 2021/7/3 14:36
 * @Description:
 */
@Slf4j
@RestController
@RequestMapping("/student")
public class StudentController {

    @GetMapping("/get/{id}")
    public String get(@PathVariable("id") Long id){
        return "Hello,"+id+"";
    }

    public void init(){
        log.info("-------------->StudentController init .....");
    }

}
